var express = require('express');
const db = require('../db/index1.js')
var router = express.Router();


router.get('/djknows', (req, res) => {
    db('SELECT * FROM xjp', (err, result) => {
        if (err) throw err
        res.send({
            code: 200,
            msg: "获取成功",
            data: result
        })
    })
})


module.exports = router;